/*
 * game.h
 *
 *  Created on: 2010/04/27
 *      Author: ei08111
 */

#ifndef GAME_H_
#define GAME_H_

typedef char string[50];

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

char* nomes[10];
int pontos[10];

int get_num_words();
int generate();
char *get_random_word();
char *hide_word(char* random_word);
char *game_help(char* random_word, char* hide_word);
char *validate(char* random_word, char* guess);
char process(char* guess, char* rword, char c, int i);
char *win_word(char* game_word);
char *game_guess(char* random_word, char* hide_word, char* guess);
void cleanword(char* word);
int load(char ** nomes, int * pontos);
void save(char ** nomes, int * pontos, int num);
void add_highscore(int score, char* name);



#endif /* GAME_H_ */
